package org.example.demo3;/*
 *@ 代阳敲的专属代码
 **/

public class Enumeration03 {
    public static void main(String[] args) {
//        System.out.println(Season.SEASON.getName());
//        System.out.println(Season.SUMMER.getDesc());
//        System.out.println(Season.AUTUMN.toString());
//        System.out.println(Season.WINTER.name());
        System.out.println(Season.SEASON.ordinal());
        System.out.println(Season.WINTER.ordinal());
        System.out.println(Season.WINTER.compareTo(Season.SUMMER));
        Season valueOf [] = Season.values();
        for (Season season : valueOf) {
            System.out.println(season.name());
        }
    }
//    public static void main(String[] args) {
//        Gender gender = Gender.BOY;
//        Gender gender1 = Gender.BOY;
//        System.out.println(gender);
//        System.out.println(gender1==gender);
//    }

}
